//
//  WKAlbumManger.h
//  Version1.0_RectiveCocoa
//
//  Created by ChiCo on 2018/1/30.
//  Copyright © 2018年 吴可高. All rights reserved.
//

#import <Foundation/Foundation.h>

@class PHCachingImageManager,PHAsset;
@class WKAlbumModel,WKAssetModel;

@interface WKAlbumManger : NSObject

@property (nonatomic, strong) PHCachingImageManager *cachingImageManager;

+ (instancetype)manager;

@property (nonatomic, assign) BOOL shouldFixOrientation;

@property (nonatomic, assign) CGFloat photoPreviewMaxWidth;

@property (nonatomic, assign) CGFloat photoWidth;

@property (nonatomic, assign) NSInteger columnNumber;

@property (nonatomic, assign) BOOL sortAscendingByModificationDate;

@property (nonatomic, assign) NSInteger minPhotoWidthSelectable;
@property (nonatomic, assign) NSInteger minPhotoHeightSelectable;
@property (nonatomic, assign) BOOL hideWhenCanNotSelect;


/// Get Assets 获得Asset数组
- (void)getAssetsFromFetchResult:(id)result completion:(void (^)(NSArray<WKAlbumModel *> *models))completion;

- (void)getAssetsFromFetchResult:(id)result allowPickingVideo:(BOOL)allowPickingVideo allowPickingImage:(BOOL)allowPickingImage completion:(void (^)(NSArray<WKAssetModel *> *))completion;

- (void)getAssetFromFetchResult:(id)result atIndex:(NSInteger)index allowPickingVideo:(BOOL)allowPickingVideo allowPickingImage:(BOOL)allowPickingImage completion:(void (^)(WKAlbumModel *model))completion;


@end
